from pywebshot import *
import gtk
import gtk.gdk as gdk

url = ["www.ppg.com"]
screen = "640x480"
delay = 1
thumbnail = "350x200"
outfile = "www.ppg.com.png"

def __windowExit(widget, data=None):
	gtk.main_quit()

window = PyWebShot(url, screen,thumbnail,delay, outfile)
window.parent.connect("destroy", __windowExit)
gtk.main()